/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package by.bsuir.bbs.commands;
import by.bsuir.bbs.dao.UserJpaController;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 *
 * @author Администратор
 */
public class Test implements Command {

    @Override
    public String execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        UserJpaController UserJC = new UserJpaController();
        List list = UserJC.view();
        request.setAttribute("list", list);
       return "/index.jsp";
        
    }
    
}
